<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			/*
			   localStorage:硬盘
			   sessionStorage:会话范围
			
			
			*/
			var a = 10;
			var fn = function() {

			}

			console.dir(window);
			//增
			localStorage.setItem("name", "zhangsan");
			//改
			localStorage.setItem("name", "lisi");
			//删
			localStorage.removeItem("name");
			
			// sessionStorage.setItem("bwf","学掌门");
		</script>
	</body>
</html>
